import request from '@/utils/request'

// 查询库存总量列表
export function listInventory(query) {
  return request({
    url: '/wlsggk/inventory/list',
    method: 'get',
    params: query
  })
}

// 查询库存总量详细
export function getInventory(totalId) {
  return request({
    url: '/wlsggk/inventory/' + totalId,
    method: 'get'
  })
}

// 新增库存总量
export function addInventory(data) {
  return request({
    url: '/wlsggk/inventory',
    method: 'post',
    data: data
  })
}

// 修改库存总量
export function updateInventory(data) {
  return request({
    url: '/wlsggk/inventory',
    method: 'put',
    data: data
  })
}

// 删除库存总量
export function delInventory(totalId) {
  return request({
    url: '/wlsggk/inventory/' + totalId,
    method: 'delete'
  })
}
